<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
<title>{$site_name}</title>
<!-- CSS -->
<!--<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">-->
<link rel="stylesheet" href="{url:#css/materialize.min.css}" />
<link rel="stylesheet" href="{url:#css/me.css}" />
<link rel="stylesheet" href="{url:#css/iconfont.css}" />
<style type="text/css">
body{
	background-image:url(images/index_body_bg.png);
}
a{
	color:black;
}
</style>

<!-- JS -->
<script src="{url:#js/jquery-1.11.3.min.js}"></script>
<script src="{url:#js/materialize.min.js}"></script>
<script src="{url:#js/json/json2.js}"></script>
<script src="{url:#js/home/home_me.js}"></script>
</head>
<body>
<!-- TitleBar 开始 -->
<div class="navbar-fixed">
  <nav>
    <div class="nav-wrapper red accent-4 valign-wrapper">
      <ul class="left">
        <li><a  class="disabled" style="visibility:hidden"><i class="iconfont">&#xe63c;</i></a></li>
      </ul>
      <span class="title-bar-size center_align">个人中心</span>
      <ul class="right">
        <li><a href="{url:/mobile/setting}"><i class="material-icons">settings</i></a></li>
      </ul>
    </div>
  </nav>
</div>
<!-- TitleBar 结束 -->

<!-- 顶部登陆部分 开始 -->
<div class="me_login_bg center">
	<div style="position:relative; top:40px;">			
		<span>欢迎来到{$site_name}</span>
		{if:empty($mobile_user)}
		<a id="login" class="waves-effect waves-light btn-flat" href="{url:/mobile/login}">登陆/注册</a>
		{else:}
		欢迎您，{$mobile_user['name']}
		{/if}
	</div>
</div>
<!-- 顶部登陆部分 结束 -->

<!-- 订单列表部分 开始-->
<div class="me-order">
	<!-- 全部订单 -->
	<div class="me-allorder">
		<div class="left">
			<span class="allorder">
				<i class="iconfont" style="color:#FF0000;">&#xe641;</i> 全部订单 
			</span>
		</div>		
		<div class="right" style="margin-top:10px">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list}{else:}javascript:;{/if}">
				查看全部已购买的宝贝<i class="iconfont" style="font-size:1.0em">&#xe621;</i>
			</a>
		</div>
	</div>
	<div class="divider"></div>
	
	<!-- 订单分类 -->
	<div class="row mgr-0 padd-0" style="padding-bottom:10px;">
		<div class="tab">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list/type/1}{else:}javascript:;{/if}">
				<i class="iconfont">&#xe65e;</i><br/>
				<span>待付款</span>
				{set:$num = Common::getOrderNumByStatus($mobile_user['id'],1)}
				{if:$num>0}
				<span class="circle num">{$num}</span>
				{/if}
			</a>
		</div>
		<div class="tab">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list/type/2}{else:}javascript:;{/if}">
				<i class="iconfont">&#xe65f;</i><br/>
				<span>待发货</span>
				{set:$num = Common::getOrderNumByStatus($mobile_user['id'],2)}
				{if:$num>0}
				<span class="circle num">{$num}</span>
				{/if}
			</a>
		</div>
		<div class="tab">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list/type/3}{else:}javascript:;{/if}">
				<i class="iconfont">&#xe65c;</i><br/>
				<span>待收货</span>
				{set:$num = Common::getOrderNumByStatus($mobile_user['id'],3)}
				{if:$num>0}
				<span class="circle num">{$num}</span>
				{/if}
			</a>
		</div>
		<div class="tab">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list/type/4}{else:}javascript:;{/if}">
				<i class="iconfont">&#xe65d;</i><br/>
				<span>待评价</span>
				{set:$num = Common::getOrderNumByStatus($mobile_user['id'],4)}
				{if:$num>0}
				<span class="circle num">{$num}</span>
				{/if}
			</a>
		</div>
		<div class="tab">
			<a href="{if:!empty($mobile_user)}{url:/mobile/order_list/type/5}{else:}javascript:;{/if}">
				<i class="iconfont">&#xe660;</i><br/>
				<span>退款/售后</span>
				{set:$num = Common::getOrderNumByStatus($mobile_user['id'],5)}
				{if:$num>0}
				<span class="circle num">{$num}</span>
				{/if}
			</a>
		</div>
	</div>
	<div class="divider"></div>
</div>
<!-- 订单列表部分 结束 -->

<!-- 功能列表 开始-->
<div class="item-box">
    <ul class="collection">
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/shopping_car}{else:}javascript:;{/if}">
	  	<div>购物车
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_account}{else:}javascript:;{/if}">
	  	<div>我的账户
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <!-- 
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/user_info}{else:}javascript:;{/if}">
	  	<div>个人资料
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  -->
	  
	  
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/change_password}{else:}javascript:;{/if}">
	  	<div><a>修改密码</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/sqdl}{else:}javascript:;{/if}">
	  	<div><a>代理申请</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
    </ul>	
</div>



<div class="item-box">
    <ul class="collection">
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/reg_user}{else:}javascript:;{/if}">
	  	<div>注册会员
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>	  
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/tjr_list}{else:}javascript:;{/if}">
	  	<div><a>我的推广</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/tjr_href}{else:}javascript:;{/if}">
	  	<div><a>分享链接</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{url:/mobile/download}">
	  	<div><a>下载链接</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
    </ul>	
</div>





<div class="item-box">
    <ul class="collection">
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/transaction_list}{else:}javascript:;{/if}">
	  	<div>交易大厅
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>	  
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_transaction}{else:}javascript:;{/if}">
	  	<div><a>我的交易</a>
	  		
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  
    </ul>	
</div>





<div class="item-box">
    <ul class="collection">
    	
    	<li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/recharge_list}{else:}javascript:;{/if}">
	  	<div>充值记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/zz_list}{else:}javascript:;{/if}">
	  	<div>转账记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/withdraw_list}{else:}javascript:;{/if}">
	  	<div>提现记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/trans_list}{else:}javascript:;{/if}">
	  	<div>兑换记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/jj_list}{else:}javascript:;{/if}">
	  	<div>奖金记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/refund_list}{else:}javascript:;{/if}">
	  	<div>退款记录
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
    </ul>
</div>



{if:$mobile_user['is_seller']==1}
<div class="item-box">
    <ul class="collection">
    	<li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_dp}{else:}javascript:;{/if}">
		  	<div>我的店铺
				<a  class="secondary-content">
					<i class="iconfont right">&#xe63f;</i>
				</a>
			</div>
	    </li>
	    <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_dp_products_list}{else:}javascript:;{/if}">
		  	<div>店铺商品
				<a  class="secondary-content">
					<i class="iconfont right">&#xe63f;</i>
				</a>
			</div>
	    </li>
	    <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_sell_order_list}{else:}javascript:;{/if}">
		  	<div>销售订单
				<a  class="secondary-content">
					<i class="iconfont right">&#xe63f;</i>
				</a>
			</div>
	    </li>
    </ul>
</div>
{/if}



<div class="item-box">
    <ul class="collection">
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_attention}{else:}javascript:;{/if}">
	  	<div>收藏的宝贝
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/my_addr}{else:}javascript:;{/if}">
	  	<div>收货地址管理
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  <!-- 
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/tjr_list}{else:}javascript:;{/if}">
		<div style="width:100%;">
			推广会员
			<a class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
      <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/binary_share}{else:}javascript:;{/if}">
	  	<div>二维码推广
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  -->
	  
	  <li class="collection-item" url="{if:!empty($mobile_user)}{url:/mobile/leave_message}{else:}javascript:;{/if}">
	  	<div>在线留言
			<a  class="secondary-content">
				<i class="iconfont right">&#xe63f;</i>
			</a>
		</div>
	  </li>
	  
    </ul>	
</div>
<!-- 功能列表 结束 -->
</body>
</html>
